
//index.js
//获取应用实例
const app = getApp()
var common = require('../../common/wxjs/wx_ajax.js')
Page({
  fromdata: function (e) {
    let momname = e.detail.value.m_name;
    let momage = e.detail.value.m_age;
    let momaccount = e.detail.value.m_account;
    if (momname == '') {
      this.setData(
        { popErrorMsg: "请输入姓名" }
      );
    } else if (momage == '') {
      this.setData(
        { popErrorMsg: "请输入年龄" }
      );
    } else if (momaccount == '') {
      this.setData(
        { popErrorMsg: "请驶入户口所在地" }
      );
    } else if (momname!=''&&momage!=''&&momaccount!=''){
      wx.navigateTo({
        url: '../jksc/jksc'
      })
    }
    this.ohShitfadeOut();
  },
  ohShitfadeOut() {
    var fadeOutTimeout = setTimeout(() => {
      this.setData({ popErrorMsg: '' });
      clearTimeout(fadeOutTimeout);
    }, 3000);
  }
})
